package com.zxbg.service.impl.publicServiceImpl;

import com.zxbg.dao.EmployeeDao;
import com.zxbg.domain.Employee;
import com.zxbg.service.publicService.SearchPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchPersonImpl implements SearchPersonService {
    @Autowired
    EmployeeDao employeeDao;

    @Override
    public List<Employee> getEmployeeByName(String employee_name) {
        return employeeDao.getEmployeeByName("%" + employee_name.replace("\"", "") + "%");
    }
}
